home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / crontab.vim < prev    next >
Encoding:
Text File  |  2001-05-11  |  1.2 KB  |  48 lines

  1. " Vim syntax file
  2. " Language:    crontab
  3. " Maintainer:    John Hoelzel johnh51@bigfoot.com
  4. " Last Change:    2001 May 10
  5. " Filenames:    Linux: */crontab.*
  6. " URL:        http://bigfoot.com/~johnh51/vim/syntax/crontab.vim
  7. "
  8. " line format:
  9. " Minutes   Hours   Days   Months   Days_of_Week   Commands # comments
  10.  
  11. " For version 5.x: Clear all syntax items
  12. " For version 6.x: Quit when a syntax file was already loaded
  13. if version < 600
  14.   syntax clear
  15. elseif exists("b:current_syntax")
  16.   finish
  17. endif
  18.  
  19. syn sync lines=2
  20.  
  21. " times
  22. syn match crontabStatement    "^\s\{}\S\{1,}\s\{1,}\S\{1,}\s\{1,}\S\{1,}\s\{1,}\S\{1,}\s\{1,}\S\{1,}\s"
  23.  
  24. " comments
  25. syn region crontabComment    start="#" end="$"
  26.  
  27.  
  28. " Define the default highlighting.
  29. " For version 5.7 and earlier: only when not done already
  30. " For version 5.8 and later: only when an item doesn't have highlighting yet
  31. if version >= 508 || !exists("did_crontab_syntax_inits")
  32.   if version < 508
  33.     let did_crontab_syntax_inits = 1
  34.     command -nargs=+ HiLink hi link <args>
  35.   else
  36.     command -nargs=+ HiLink hi def link <args>
  37.   endif
  38.  
  39.   HiLink crontabStatement    Statement
  40.   HiLink crontabComment        Comment
  41.  
  42.   delcommand HiLink
  43. endif
  44.  
  45. let b:current_syntax = "crontab"
  46.  
  47. " vim: ts=8
  48.